﻿#region

using System.Collections.Generic;
using System.Collections.ObjectModel;
using Radovici.SharedLibrary;

#endregion

namespace Radovici.Ctrls.Desktop
{
    public class DesktopModel : Notifiable
    {
        #region Private fields

        private readonly ObservableCollection<MenuItemModel> _menuItemModels = new ObservableCollection<MenuItemModel>();
        private readonly ObservableCollection<WidgetModel> _widgetModels = new ObservableCollection<WidgetModel>();

        #endregion

        public IEnumerable<MenuItemModel> WidgetTemplates
        {
            get { return _menuItemModels; }
        }

        public IEnumerable<WidgetModel> WidgetModels
        {
            get { return _widgetModels; }
        }

        public void Add(MenuItemModel template)
        {
            _menuItemModels.Add(template);
        }

        public void Remove(MenuItemModel template)
        {
            _menuItemModels.Remove(template);
        }

        public void Add(WidgetModel model)
        {
            _widgetModels.Add(model);
        }

        public void Remove(WidgetModel model)
        {
            _widgetModels.Remove(model);
        }
    }
}